<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="lib/vue.js"></script>
</head>
<body>
<div id="root">
  <h3>root</h3>
</div>
</body>
<template id="tp">
  <div>template:{{str}}</div>
</template>
<script>
  // 模板有且只能是一个根元素
  new Vue({
    el:"#root",
    data:{
      str:"工作了，很开心！我也很开心"
    },
    template:"#tp",
    methods:{},
    filters:{},
    computed:{}
  })
</script>
</html>